/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import java.util.List;
import org.hibernate.criterion.DetachedCriteria;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class Tbv_bitacora_abastecimientoDetachedCriteria extends AbstractORMDetachedCriteria {
	public final IntegerExpression ba_id_bitacora_abastecimiento;
	public final IntegerExpression ba_existencias;
	public final IntegerExpression ba_saldo;
	public final IntegerExpression ba_cantidad_abastecida;
	
	public Tbv_bitacora_abastecimientoDetachedCriteria() {
		super(orm.Tbv_bitacora_abastecimiento.class, orm.Tbv_bitacora_abastecimientoCriteria.class);
		ba_id_bitacora_abastecimiento = new IntegerExpression("ba_id_bitacora_abastecimiento", this.getDetachedCriteria());
		ba_existencias = new IntegerExpression("ba_existencias", this.getDetachedCriteria());
		ba_saldo = new IntegerExpression("ba_saldo", this.getDetachedCriteria());
		ba_cantidad_abastecida = new IntegerExpression("ba_cantidad_abastecida", this.getDetachedCriteria());
	}
	
	public Tbv_bitacora_abastecimientoDetachedCriteria(DetachedCriteria aDetachedCriteria) {
		super(aDetachedCriteria, orm.Tbv_bitacora_abastecimientoCriteria.class);
		ba_id_bitacora_abastecimiento = new IntegerExpression("ba_id_bitacora_abastecimiento", this.getDetachedCriteria());
		ba_existencias = new IntegerExpression("ba_existencias", this.getDetachedCriteria());
		ba_saldo = new IntegerExpression("ba_saldo", this.getDetachedCriteria());
		ba_cantidad_abastecida = new IntegerExpression("ba_cantidad_abastecida", this.getDetachedCriteria());
	}
	
	public Tbv_bitacora_maquinaDetachedCriteria createTbv_bitacora_maquinabm_id_bitacora_maquinaCriteria() {
		return new Tbv_bitacora_maquinaDetachedCriteria(createCriteria("tbv_bitacora_maquinabm_id_bitacora_maquina"));
	}
	
	public Tbv_productoDetachedCriteria createTbv_productopr_id_productoCriteria() {
		return new Tbv_productoDetachedCriteria(createCriteria("tbv_productopr_id_producto"));
	}
	
	public Tbv_bitacora_abastecimiento uniqueTbv_bitacora_abastecimiento(PersistentSession session) {
		return (Tbv_bitacora_abastecimiento) super.createExecutableCriteria(session).uniqueResult();
	}
	
	public Tbv_bitacora_abastecimiento[] listTbv_bitacora_abastecimiento(PersistentSession session) {
		List list = super.createExecutableCriteria(session).list();
		return (Tbv_bitacora_abastecimiento[]) list.toArray(new Tbv_bitacora_abastecimiento[list.size()]);
	}
}

